@import 'src/styles/constants';

.markdown {
  display: flex;

  .markdown-content {
    padding: 0 20px;
    min-width: 50vw;
    padding-bottom: 20px;
    overflow-y: auto;

    @include desktop {
      padding: 0 72px;
      padding-bottom: 40px;
      width: 80%;
    }
  }

  p {
    word-break: break-word;
    line-height: 1.4;
  }

  pre {
    background-color: $dark80;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 2px 2px 2px $dark60;

    code {
      background: transparent;
      color: $dark10;
      padding: 0;
      white-space: pre-wrap;
    }
  }

  code {
    word-break: break-word;
    display: inline-block;
    background: $dark70;
    color: $primary;
    padding: 1px 2px;
    margin-bottom: 2px;
  }

  li {
    line-height: 1.4;
  }
}
